<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"
    import="cn.edu.hbwe.book.entity.Book"
    %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
 <link href="${pageContext.request.contextPath}/admin/css/tx.css" rel="stylesheet" type="text/css">
</head>
<body>
<%@include file="/admin/login/top.jsp"%>
   <div id=all>
   <div id=left>
    <%@include file="/admin/login/left.jsp"%>
    </div>
   <div id=right >
   
<%
	Book book=(Book)request.getAttribute("book");
%>
	<form id="Form1" name="Form1"
		action="${pageContext.request.contextPath}/updateBookMessageServlet"
		method="post">
			<TBODY>
						<table>
							<tr>
								<td height="30" align="center"class="ta_01">商品编号</td>
								<td class="ta_01" bgColor="#ffffff">
									<input type="text" name="id"readonly="true" size="17" value=<%=book.getId()%> id="Form1_userName" class="bg" />
								</td>
								<td height="30" align="center"class="ta_01">商品名称</td>
								<td class="ta_01" bgColor="#ffffff">
									<input type="text" name="name" size="17" value=<%=book.getName()%> id="Form1_userName" class="bg" />
								</td>
								<td height="30" align="center" class="ta_01">书籍类别：</td>
								<td style="width:130px;">
								<select name="category" id="category">
										<option value="" selected="selected">--选择商品类别--</option>
										<option value="文学">文学</option>
										<option value="生活">生活</option>
										<option value="计算机">计算机</option>
										<option value="外语">外语</option>
										<option value="经营">经营</option>
										<option value="励志">励志</option>
										<option value="社科">社科</option>
										<option value="学术">学术</option>
										<option value="少儿">少儿</option>
										<option value="艺术">艺术</option>
										<option value="原版">原版</option>
										<option value="科技">科技</option>
										<option value="考试">考试</option>
										<option value="生活百科">生活百科</option>
								</select>
								</td>
									<td  bgColor="#ffffff" class="ta_01">
									<button  type="submit" id="search" name="search" value="添加" class="button_view">
									更新
									</button> 
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
									<input style="margin-left:-25px;" type="reset" name="reset" value="重置" class="button_view" />
								</td>
								
							</tr>
							<tr>
								<td height="30" align="center"class="ta_01">商品价格</td>
								<td class="ta_01" bgColor="#ffffff">
									<input type="text" name="price" size="17" value=<%=book.getPrice()%> id="Form1_userName" class="bg" />
								</td>
									<td height="30" align="center"class="ta_01">商品数量</td>
								<td class="ta_01" bgColor="#ffffff">
									<input type="text" name="pnum" size="17" value=<%=book.getPnum()%> id="Form1_userName" class="bg" />
								</td>
									<td height="30" align="center"class="ta_01">图片路径</td>
								<td class="ta_01" bgColor="#ffffff">
									<input type="text" name="imgurl" size="17" value=<%=book.getImgurl()%> id="Form1_userName" class="bg" />
								</td>
							</tr>
							<tr>
								<td style="text-align: right">图书描述：</td>
								<td colspan="2">
								<textarea class="textarea"  name="introduce"><%=book.getSerialversionuid()%></textarea>
								</td>
								<td>&nbsp;</td>
							</tr>
						</table>
			</TBODY>
	</form>
	 </div>
    </div>
        <%@include file="/admin/login/bottom.jsp"%>
</body>
</html>